﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="P_InfoObservacao.ascx.cs" Inherits="Ecommerce.Admin.Controles.P_InfoObservacao" %>
<div id="grid">

    <asp:HiddenField ID="hddNumPedido" runat="server" />

<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server" ChildrenAsTriggers="true">
    <ContentTemplate>
                
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <span id='loading' class="Gauge_Posicao">
                    <img src="../Imagens/load_icon.gif" border="0" alt="Carregando..." />
                </span>
            </ProgressTemplate>
        </asp:UpdateProgress>

        <asp:GridView ID="grvLog" runat="server"
            CellPadding="0"
            CellSpacing="0" 
            AutoGenerateColumns="False" 
            Width="100%" 
            GridLines="None"
            HeaderStyle-CssClass="Table_Header"
            AlternatingRowStyle-CssClass="Table_Body_Alternate" 
            RowStyle-CssClass="Table_Body" 
            AllowPaging="True" onrowdatabound="grvLog_RowDataBound">
            
            <Columns>  
                <asp:BoundField DataField="ped_idt_pedido" HeaderStyle-HorizontalAlign="Left" HeaderText="Criado em" ReadOnly="True" SortExpression="CustomerID" />  
                <asp:BoundField DataField="ped_idt_pedido" HeaderStyle-HorizontalAlign="Left" HeaderText="Notas" SortExpression="CompanyName" />
                
                <asp:TemplateField HeaderText="Excluir" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbExcluir" runat="server">LinkButton</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>  
        </asp:GridView>

        <div>
            <p>
                <b><asp:Label ID="lblTitulo" CssClass="Label_Formulario" runat="server" Text="Adicionar nota ao pedido"></asp:Label></b>
            </p>
            <asp:TextBox ID="txtNota" runat="server" TextMode="MultiLine" Width="500px" Height="50px"></asp:TextBox>
            <p style="text-align:left">
                <asp:Button ID="btnSalvar" runat="server" CssClass="Botao_Toolbox" 
                    Text="Salvar" onclick="btnSalvar_Click" />
            </p>
        </div>

        </ContentTemplate>
    </asp:UpdatePanel>
</div>